<form nz-form [formGroup]="validateForm">
	<nz-form-item>
		<nz-form-label [nzSm]="5" [nzXs]="24" nzRequired nzFor="code">用户编号</nz-form-label>
		<nz-form-control [nzSm]="16" [nzXs]="24" [nzErrorTip]="'用户编号不能为空'">
			<input nz-input formControlName="code" style="width: calc(100% - 40px);margin-right: 8px;vertical-align: middle;" placeholder="请填写用户编号" />
			<button [nzLoading]="nzLoading" (click)="checkUser()" nzTooltipTitle="获取数据" nz-tooltip nz-button nzType="primary" style="vertical-align: middle">
				<i nz-icon [nzType]="'sync'"></i>
			</button>
		</nz-form-control>
	</nz-form-item>
	
	<nz-form-item>
		<nz-form-label [nzSm]="5" [nzXs]="24" nzRequired nzFor="name">用户名称</nz-form-label>
		<nz-form-control [nzSm]="16" [nzXs]="24" [nzErrorTip]="'用户名称不能为空'">
			<input nz-input formControlName="name" placeholder="请填写用户名称" />
		</nz-form-control>
	</nz-form-item>

	<nz-form-item>
		<nz-form-label [nzSm]="5" [nzXs]="24" nzRequired nzFor="deptName">部门名称</nz-form-label>
		<nz-form-control [nzSm]="16" [nzXs]="24" [nzErrorTip]="'部门名称不能为空'">
			<input nz-input formControlName="deptName" placeholder="请填写部门名称" />
		</nz-form-control>
	</nz-form-item>

	<nz-form-item>
		<nz-form-label [nzSm]="5" [nzXs]="24" nzRequired nzFor="email">邮箱地址</nz-form-label>
		<nz-form-control [nzSm]="16" [nzXs]="24" [nzErrorTip]="'邮箱地址不能为空'">
			<input nz-input formControlName="email" placeholder="请填写邮箱地址" />
		</nz-form-control>
	</nz-form-item>

	<nz-form-item *ngIf="item">
		<nz-form-label [nzSm]="5" [nzXs]="24" nzRequired nzFor="forbidden">是否禁用</nz-form-label>
		<nz-form-control [nzSm]="16" [nzXs]="24" >
			<nz-switch formControlName="forbidden" nzCheckedChildren="是" nzUnCheckedChildren="否"></nz-switch>
		</nz-form-control>
	</nz-form-item>

	<nz-form-item>
		<nz-form-label [nzSm]="5" [nzXs]="24" nzFor="warehouseIdList">仓库</nz-form-label>
		<nz-form-control [nzSm]="16" [nzXs]="24" >
			<!-- <input nz-input formControlName="warehouseIdList" placeholder="请选择仓库" /> -->
			<nz-tree-select
				style="width: 100%"
				[nzDropdownStyle]="{'max-height': '300px'}"
				formControlName="warehouseIdList"
				[nzNodes]="warehouseNodes"
				nzCheckStrictly
				nzShowSearch
				nzCheckable
				nzPlaceHolder="请选择仓库"
			>
			</nz-tree-select>
		</nz-form-control>
	</nz-form-item>
	<nz-form-item>
		<nz-form-label [nzSm]="5" [nzXs]="24" nzFor="warehouseIdList">种类</nz-form-label>
		<nz-form-control [nzSm]="16" [nzXs]="24" >
			<nz-select formControlName="typeIdList" nzPlaceHolder="请选择" nzAllowClear [nzMode]="'multiple'">
				<nz-option *ngFor="let toolType of toolTypeList" [nzLabel]="toolType.name"  [nzValue]="toolType.id"></nz-option>
			</nz-select>
		</nz-form-control>
	</nz-form-item>
</form>